package com.cam.test.ajax.controller;

import com.cam.framework.utils.RestResult;
import com.cam.test.ajax.entity.AjaxTest;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/test/ajax")
public class AjaxTestController {

    @GetMapping("getForm")
    public RestResult getForm(AjaxTest ajaxTest) {
        return RestResult.success();
    }

    @PostMapping("/postJsonBody")
    public RestResult postJsonBody(@RequestBody AjaxTest ajaxTest) {return RestResult.success();}

    @PostMapping("/postForm")
    public RestResult postForm(List<String> paramsList) {
        return RestResult.success();
    }

    @PostMapping("/postUE")
    public RestResult postUE(HttpServletRequest request, AjaxTest ajaxTest) {
        return RestResult.success();
    }

}
